<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>length</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>length</b> -  length of object</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>n=length(M)   </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>M</b>
        </tt>: matrix (usual or polynomial or character string) or list</li>
      <li>
        <tt>
          <b>n</b>
        </tt>: integer or integer matrix</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    For usual or polynomial matrix <tt>
        <b>n</b>
      </tt> is the integer equal to number of rows times
    number of columns of <tt>
        <b>M</b>
      </tt>. (Also valid for <tt>
        <b>M</b>
      </tt> a boolean matrix)</p>
    <p>
    For matrices made of character strings (and in particular for a character string)
    <tt>
        <b>length</b>
      </tt> returns in <tt>
        <b>n</b>
      </tt> the length of entries of the matrix of character strings <tt>
        <b>M</b>
      </tt>.</p>
    <p>
    The length of a list is the number of elements in the list (also given by <tt>
        <b>size</b>
      </tt>).</p>
    <p>
      <tt>
        <b>length('123')</b>
      </tt> is <tt>
        <b>3</b>
      </tt>. <tt>
        <b>length([1,2;3,4])</b>
      </tt> is <tt>
        <b>4</b>
      </tt>.</p>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="../elementary/size.htm">
        <tt>
          <b>size</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
